
//开户详细信息查询
class UserRegisterDetailQueryModel {
  BankAccount? bankAccount;
  String? certificationStatus;
  String? channel;
  LegalPersonInfo? legalPersonInfo;
  String? plat;
  String? reason;
  SubjectInfo? subjectInfo;

  UserRegisterDetailQueryModel({this.bankAccount, this.certificationStatus, this.channel, this.legalPersonInfo, this.plat, this.reason, this.subjectInfo});

  UserRegisterDetailQueryModel.fromJson(Map<String, dynamic> json) {
    bankAccount = json["bankAccount"] == null ? null : BankAccount.fromJson(json["bankAccount"]);
    certificationStatus = json["certificationStatus"];
    channel = json["channel"];
    legalPersonInfo = json["legalPersonInfo"] == null ? null : LegalPersonInfo.fromJson(json["legalPersonInfo"]);
    plat = json["plat"];
    reason = json["reason"];
    subjectInfo = json["subjectInfo"] == null ? null : SubjectInfo.fromJson(json["subjectInfo"]);
  }

  static List<UserRegisterDetailQueryModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(UserRegisterDetailQueryModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if(bankAccount != null) {
      _data["bankAccount"] = bankAccount?.toJson();
    }
    _data["certificationStatus"] = certificationStatus;
    _data["channel"] = channel;
    if(legalPersonInfo != null) {
      _data["legalPersonInfo"] = legalPersonInfo?.toJson();
    }
    _data["plat"] = plat;
    _data["reason"] = reason;
    if(subjectInfo != null) {
      _data["subjectInfo"] = subjectInfo?.toJson();
    }
    return _data;
  }
}

class SubjectInfo {
  String? certNo;
  String? certUrl;
  String? certValidate;
  String? contactMobile;
  String? signName;

  SubjectInfo({this.certNo, this.certUrl, this.certValidate, this.contactMobile, this.signName});

  SubjectInfo.fromJson(Map<String, dynamic> json) {
    certNo = json["certNo"];
    certUrl = json["certUrl"];
    certValidate = json["certValidate"];
    contactMobile = json["contactMobile"];
    signName = json["signName"];
  }

  static List<SubjectInfo> fromList(List<Map<String, dynamic>> list) {
    return list.map(SubjectInfo.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["certNo"] = certNo;
    _data["certUrl"] = certUrl;
    _data["certValidate"] = certValidate;
    _data["contactMobile"] = contactMobile;
    _data["signName"] = signName;
    return _data;
  }
}

class LegalPersonInfo {
  String? legalLicenceBacktUrl;
  String? legalLicenceFrontUrl;
  String? legalPersonLicenceNo;
  String? legalPersonMobile;
  String? legalPersonName;

  LegalPersonInfo({this.legalLicenceBacktUrl, this.legalLicenceFrontUrl, this.legalPersonLicenceNo, this.legalPersonMobile, this.legalPersonName});

  LegalPersonInfo.fromJson(Map<String, dynamic> json) {
    legalLicenceBacktUrl = json["legalLicenceBacktUrl"];
    legalLicenceFrontUrl = json["legalLicenceFrontUrl"];
    legalPersonLicenceNo = json["legalPersonLicenceNo"];
    legalPersonMobile = json["legalPersonMobile"];
    legalPersonName = json["legalPersonName"];
  }

  static List<LegalPersonInfo> fromList(List<Map<String, dynamic>> list) {
    return list.map(LegalPersonInfo.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["legalLicenceBacktUrl"] = legalLicenceBacktUrl;
    _data["legalLicenceFrontUrl"] = legalLicenceFrontUrl;
    _data["legalPersonLicenceNo"] = legalPersonLicenceNo;
    _data["legalPersonMobile"] = legalPersonMobile;
    _data["legalPersonName"] = legalPersonName;
    return _data;
  }
}

class BankAccount {
  String? accountType;
  String? bankCode;
  String? bankName;
  String? branch;
  String? cardNo;
  String? city;
  String? openingLicenseUrl;
  String? province;

  BankAccount({this.accountType, this.bankCode, this.bankName, this.branch, this.cardNo, this.city, this.openingLicenseUrl, this.province});

  BankAccount.fromJson(Map<String, dynamic> json) {
    accountType = json["accountType"];
    bankCode = json["bankCode"];
    bankName = json["bankName"];
    branch = json["branch"];
    cardNo = json["cardNo"];
    city = json["city"];
    openingLicenseUrl = json["openingLicenseUrl"];
    province = json["province"];
  }

  static List<BankAccount> fromList(List<Map<String, dynamic>> list) {
    return list.map(BankAccount.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["accountType"] = accountType;
    _data["bankCode"] = bankCode;
    _data["bankName"] = bankName;
    _data["branch"] = branch;
    _data["cardNo"] = cardNo;
    _data["city"] = city;
    _data["openingLicenseUrl"] = openingLicenseUrl;
    _data["province"] = province;
    return _data;
  }
}